/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package tmgt;

import java.util.Comparator;

/**
 *
 * @author jio
 */
public class ProcessComparator implements Comparator<Processinfo> {

    public int compare(Processinfo o1, Processinfo o2) {
        int result = -1;
        if (o1 != null && o2 != null) {
            String s1 = o1.getName() + o1.getDescription();
            String s2 = o2.getName() + o2.getDescription();
            return s1.compareTo(s2);
        }
        return result;
    }

    
}
